'''
Created on Feb 24, 2016

@author: JimmyMo
'''
import threading
from time import ctime, sleep

def music(name, times):
    print("I was listening to music. %s - %d" % (ctime(), t))
    sleep(1)

threads = []
for t in range(100):
    t1 = threading.Thread(target=music, args={"name":"abc","times":t})
    t1.setDaemon(True)
    threads.append(t1)

[t.start() for t in threads]